﻿using System;
using System.Runtime.InteropServices;

namespace CSharpLib
{
    [ComVisible(true)]
    [Guid("0287E18C-9142-46a1-AF46-DD4B325A39ED")]
    public interface IManagedLib
    {
        int PrintHi(string name);
    }

    [ComVisible(true)]
    [Guid("2D7025F9-39A3-4cbe-83CD-07B50D973988")]
    public class ManagedLib : IManagedLib
    {
        #region IManagedLib Members

        public int PrintHi(string name)
        {
            Console.WriteLine("Hello, {0}!", name);
            return 33;
        }

        #endregion
    }

    
}
